#include "DropAngle.h"

DropAngle::DropAngle() {
	// Use requires() here to declare subsystem dependencies
	// eg. requires(chassis);
	Requires(Robot::shooterElevator);
}

// Called just before this Command runs the first time
void DropAngle::Initialize() {
	SetTimeout(0.6);
}

// Called repeatedly when this Command is scheduled to run
void DropAngle::Execute() {
	Robot::shooterElevator->elevatorMotor->Set(0.3);
}

// Make this return true when this Command no longer needs to run execute()
bool DropAngle::IsFinished() {
	return IsTimedOut();
}

// Called once after isFinished returns true
void DropAngle::End() {
	Robot::shooterElevator->elevatorMotor->Set(0);
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void DropAngle::Interrupted() {
}
